<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>股东列表</title>
		<link rel="stylesheet" href="__STATIC__/plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="__CSS__/global.css" media="all">
		<link rel="stylesheet" href="__STATIC__/plugins/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="__CSS__/table.css" />
	</head>

	<body>
		<div class="admin-main">

			<blockquote class="layui-elem-quote">
				<a href="__ADMIN__/commission/add_bank?uid={$uid}" class="layui-btn layui-btn-small">
					<i class="layui-icon">&#xe608;</i>添加银行
				</a>
				
			</blockquote>
			<fieldset class="layui-elem-field">
				<legend>数据列表</legend>
				<div class="layui-field-box">
					<table class="site-table table-hover">
						<thead>
							<tr>
								<th>id</th>
								<th>银行</th>
								<th>分销级数</th>
								<th>一级</th>
								<th>二级</th>
								<th>三级</th>
								<th>编辑</th>
							</tr>
						</thead>
						<tbody>					
					   {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.bank_name}</td>
                                <td>{$vo.type}</td>
                                <td>{$vo.info.one}</td>
                                <td>{$vo.info.two}</td>
                                <td>{$vo.info.three}</td>
								<td>
									<a href="__ADMIN__/commission/add_bank?id={$vo.id}&uid={$vo.uid}" class="layui-btn layui-btn-mini">编辑</a>
								</td>
							</tr>
							{/volist}
						</tbody>
					</table>

				</div>
			</fieldset>
			<div class="admin-table-page">
				<div id="page" class="page">
				</div>
			</div>
		</div>
		<script type="text/javascript" src="__STATIC__/plugins/layui/layui.js"></script>
		<script>
			layui.config({
				base: '__STATIC__/plugins/layui/modules/'
			});

			layui.use(['icheck', 'laypage','layer',], function() {
				var $ = layui.jquery,
					laypage = layui.laypage,
					layer = parent.layer === undefined ? layui.layer : parent.layer;
				$('input').iCheck({
					checkboxClass: 'icheckbox_flat-green'
				});
				$(".del").click(function(){
					var obj = $(this);
					var id = $(this).attr("del");
					layer.confirm('是否确认删除', {
						btn: ['是','否'] //按钮
						}, function(){
							$.ajax({
								type:"post",
								url:"__ADMIN__/bank/del",
								data:{id:id},
								dataType:"json",
								success:function(res){
							 layer.msg('删除成功', {icon: 1});
							obj.parent().parent().hide();
								}
							})
						})
				})
			
			})
		</script>
	</body>

</html>